<!--
Design by Bryant Smith
http://www.bryantsmith.com
http://www.aszx.net
email: template [-at-] bryantsmith [-dot-] com
Released under Creative Commons Attribution 2.5 Generic.  In other words, do with it what you please; but please leave the link if you'd be so kind :)

Name       : Green Creative
Description: One column, with top naviagation
Version    : 1.0
Released   : 20081222
-->

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<%@taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" type="text/css" href="css/style.css" />
        <title><decorator:title/></title>
    </head>

    <body>
        <div id="page">

            <div id="header">
                <div id="headerTitle">Hobby Groups</div>
                <div id="headerSubText">Project Web Page by Udroiu Luiza.</div>

            </div>
            <div id="bar">
                <sec:authorize access="hasRole('ROLE_ADMIN')">
                    <a href="<c:url value="/users.htm"/>">Users</a>
                </sec:authorize>

                <sec:authorize access="hasRole('ROLE_USER')">
                    <a href="<c:url value="/groups.htm"/>">Groups</a>
                </sec:authorize>
				
				<sec:authorize access="hasRole('ROLE_USER')">
                    <a href="<c:url value="/pictures.htm"/>">Pictures</a>
                </sec:authorize>
                
                <sec:authorize access="isAuthenticated()">
                    <a href="<c:url value="/j_spring_security_logout"/>">Logout</a>
                </sec:authorize>

            </div>
            <div class="contentTitle"><h1><decorator:title/></h1></div>
            <div class="contentText">
                <decorator:body/>
            </div>
        </div>
        <div id="footer"><a href="http://www.aszx.net">web development</a> by <a href="http://www.bryantsmith.com">bryant smith</a> | <a href="http://www.quackit.com">web tutorials</a> | <a href="http://www.htmlcodes.me">html codes</a> | <a href="http://www.free-templates.me">free templates</a></div>
    </body>
</html>
